package com.xht.springbootweb;

import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;

@SpringBootApplication
public class Application {

    private static Logger logger = LoggerFactory.getLogger(Application.class);

    public static void main(String[] args) {
        SpringApplication.run(Application.class, args);

        // trace 和 debug 需要打印 需要配置 logging；
        // 查看application.yml
        logger.trace("跟踪");
        logger.debug("调试");
        // SpringBoot 打印的日志级别默认是 ： INFO
        logger.info("信息");
        logger.warn("警告");
        logger.error("异常");

    }
}